﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;
using Konekcija.Core.Reporting.Dto.Application.Configurations;

namespace Konekcija.Core.Reporting.Mappings.Configurations
{
    public class RegionLanguageMap : ClassMap<RegionLanguage>
    {
        public RegionLanguageMap()
        {
            Schema("config");
            Table("RegionLanguages");

            Id(x => x.Id).GeneratedBy.GuidComb().Not.Nullable();
            Map(x => x.RegionId).Column("RegionId")
                .Not.Insert().Not.Update().Nullable();
            Map(x => x.LanguageId).Nullable();
            Map(x => x.Name).Nullable();
            Map(x => x.Description).Nullable();
            Map(x => x.DateCreated).Nullable();

            References(x => x.Region).Nullable();
        }
    }
}
